function leap(year){
    if(year%4==0&&year%100!=0||year%400==0){
        return "闰年";
    }else{
        return "不是闰年"
    }

}
console.log(leap(2018));
console.log(leap(2020));